package top.whysu.study.thinkinjava.chapter8.polymorphism.example3;

public class StaticSub extends StaticSuper{
    public static String staticGet() {
        return "sub staticGet()";
    }
    @Override
    public String dynamicGet(){
        return "sub dynamicGet()";
    }

    public static void main(String[] args) {
        StaticSuper sup = new StaticSub();
        // 打印Base staticGet()
        System.out.println(sup.staticGet());
        // 打印sub dynamicGet()
        System.out.println(sup.dynamicGet());
    }
}